﻿package mortal.game.view.copy.escort
{
    import Message.Public.*;
    import extend.language.*;

    public class EscortCopyCache extends Object
    {
        public var hasGetEscortTask:Boolean;
        public var hasGetHarryTask:Boolean;
        public var waittingTime:int;
        public var isWaitting:Boolean;
        public var escortNum:int;
        public var robNum:int;
        public var notCanMove:Boolean;
        public var isInDoubleEscort:Boolean;
        public var sEscortInfo:SEscortInfo;
        private var _nullSEntityId:SEntityId;
        public static const FAR_PX:int = 800;

        public function EscortCopyCache()
        {
            return;
        }// end function

        public function getStateByType(param1:String) : String
        {
            var _loc_2:String = null;
            var _loc_3:* = this.escortNum / this.robNum;
            if (_loc_3 >= 4 || this.robNum == 0)
            {
                _loc_2 = param1 == EscortCopySelectTaskType.ESCORT ? (Language.getString(70082)) : (Language.getString(70083));
            }
            else if (_loc_3 > 2 && _loc_3 < 4)
            {
                _loc_2 = Language.getString(70084);
            }
            else if (_loc_3 <= 2)
            {
                _loc_2 = param1 == EscortCopySelectTaskType.ESCORT ? (Language.getString(70083)) : (Language.getString(70082));
            }
            return _loc_2;
        }// end function

        public function get nullSEntityId() : SEntityId
        {
            if (!this._nullSEntityId)
            {
                this._nullSEntityId = new SEntityId();
            }
            return this._nullSEntityId;
        }// end function

    }
}
